<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<script>

  async function getPhoneData(){
    console.log('star')

    const awaitResult = await new Promise((resolve, reject)=>{

        try {
          // throw Error('获取进程错误！')
          setTimeout(()=>{
            console.log('开始获取手机的数据')
            resolve('手机的数据')
          },1500)
        }catch (e){
          reject(e.message)
        }

    })
    console.log('手机数据查询完成后！！！')

    console.log('awaitResult',awaitResult)
    return 1
    /*return new Promise((resolve, reject)=>{
      // resolve(11)
      reject(222)
    })*/
  }

  const result= getPhoneData()

  console.log('result',result)
</script>
</body>
</html>